get data from cloud firestore using c